import * as types from "../types";

const initLoginState = () => ({
    token: ''
});

export default {
    state: initLoginState(),
    mutations: {
        [types.SAVE_USER] (state, playload) {
            state.token = playload.token;
        }
    },
    actions: {},
    getters: {
        getterToken(state) {
            return state.token;
        }
    }
}